package cn.com.chengmandian.xh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * C端租赁-商品类目表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("xh_goods_category")
@ApiModel(value = "XhGoodsCategory对象", description = "C端租赁-商品类目表")
public class XhGoodsCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("上级ID")
    private Integer parentId;

    @ApiModelProperty("分类编号：上级num + 当前ID + 英文逗号组成")
    private String num;

    @ApiModelProperty("分类名称")
    private String name;

    @ApiModelProperty("分类描述")
    @TableField("`describe`")
    private String describe;

    @ApiModelProperty("1 实物 2 服务")
    private Integer type;

    @ApiModelProperty("排序号")
    private Integer sort;

    @ApiModelProperty("是否禁用 0-禁用 1-可用")
    private Integer isEnabled;

    @ApiModelProperty("是否删除 1-删除 0-未删除")
    @TableLogic(value = "0" ,delval = "1")
    private Integer isDeleted;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

}
